feat: Add kernel language model service#586
Merged
Merged
Conversation
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. Ignoring alerts on:
|
5c11916 to
31b004f
Compare
Contributor
Author
|
@SocketSecurity ignore ollama@0.5.17 To be addressed by an endowment management solution. |
Contributor
Author
|
@SocketSecurity ignore npm/prettier@3.6.2 This dev dependency is an acceptable risk. |
Contributor
Author
|
@SocketSecurity ignore npm/unrs-resolver@1.11.1 The install script is disabled by lavamoat in the monorepo package.json. |
46097da to
9aa4bb2
Compare
e93bd66 to
2a0ef39
Compare
2a0ef39 to
a21cc75
Compare
a21cc75 to
65777e9
Compare
sirtimid
requested changes
Aug 12, 2025
sirtimid
left a comment
Member
There was a problem hiding this comment.
Nice one! A couple of things to change but the other nits
sirtimid
previously approved these changes
Aug 12, 2025
6668f20 to
01c2854
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lays out a strategy for language model integration into the ocap-kernel.
Changes
@ocap/kernel-language-model-service. Implementation-specific dependencies are isolated into distinct exports.@ocap/kernel-language-model-servicemakeInstancemethod, which returns an object with asamplemethod. The name sample is chosen to align with the semantics ofsamplein the model context protocol1.OllamaNodejsService.Note to Reviewers
An unused 'archetypes' abstraction was removed because it was out of scope. Good model selection for a task depends on both the details of the request and the execution context. The kernel-language-model-service package provides basic integrations against a uniform interface that nods to MCP and satisfies eventual-send.
Footnotes
https://modelcontextprotocol.io/specification/2025-06-18/client/sampling ↩